import myaxios from "../MyAxios";
import BASEURL from "../BaseUrl"

const JKTURL = BASEURL.JKTURL
const schoolApi = {
    /**驾校标签 */
    querytype() {
        let url = JKTURL + '/driverschool/types'
        return myaxios.get(url)
    },
    /**驾校查询 */
    queryall(params) {
        let url = JKTURL + '/driverschool/list'
        return myaxios.get(url, params)
    },
    /**驾校模糊 */
    queryByNameLike(params) {
        let url = JKTURL + '/driverschool/ByName'
        return myaxios.get(url, params)
    },
    add(params) {
        let url = JKTURL + '/driverschool/add'
        return myaxios.post(url, params)
    },
    update(params) {
        let url = JKTURL + '/driverschool/update'
        return myaxios.post(url, params)
    },
    queryById(params) {
        let url = JKTURL + '/driverschool/ById'
        return myaxios.get(url, params)
    },
    del(params) {
        let url = JKTURL + '/driverschool/del'
        return myaxios.get(url, params)
    },



}
export default schoolApi;